using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;



public class getCardItem : MonoBehaviour
{





    public Button button;

    private Animator animator;


    private void Awake()
    {

        button = GetComponent<Button>();

        animator = GetComponent<Animator>();


    }






    // Start is called before the first frame update
    void Start()
    {


        button.onClick.AddListener(delegate {

            animator.SetBool("accept",true);




        });




    }

    // Update is called once per frame
    void Update()
    {
        
    }



    public void animAfter() {

        gameObject.SetActive(false);

    
    
    }
}
